<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns="http://schemas.microsoft.biztalk.practices.esb.com/exceptionhandling" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns:ns0="http://schemas.microsoft.biztalk.practices.esb.com/exceptionhandling/system-properties" targetNamespace="http://schemas.microsoft.biztalk.practices.esb.com/exceptionhandling" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:appinfo>
      <schemaInfo root_reference="FaultMessage" xmlns="http://schemas.microsoft.com/BizTalk/2003" />
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="FaultMessage">
    <xs:annotation>
      <xs:appinfo />
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" name="Header">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Application" type="xs:string" />
              <xs:element name="Description" type="xs:string" />
              <xs:element name="ErrorType" type="xs:string" />
              <xs:element name="FailureCategory" type="xs:string" />
              <xs:element name="FaultCode" type="xs:string" />
              <xs:element name="FaultDescription" type="xs:string" />
              <xs:element name="FaultSeverity" type="xs:int" />
              <xs:element name="Scope" type="xs:string" />
              <xs:element name="ServiceInstanceID" type="xs:string" />
              <xs:element name="ServiceName" type="xs:string" />
              <xs:element name="FaultGenerator" type="xs:string" />
              <xs:element name="MachineName" type="xs:string" />
              <xs:element name="DateTime" type="xs:string" />
              <xs:element name="ControlBit" type="xs:string" />
              <xs:element name="MessageID" type="xs:string" />
              <xs:element name="ActivityIdentity" type="xs:string" />
              <xs:element name="NACK" type="xs:boolean" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element minOccurs="0" maxOccurs="1" name="ExceptionObject">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Message" type="xs:string" />
              <xs:element name="Type" type="xs:string" />
              <xs:element name="Source" type="xs:string" />
              <xs:element name="TargetSite" type="xs:string" />
              <xs:element name="StackTrace" type="xs:string" />
              <xs:element name="InnerExceptionMessage" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element minOccurs="0" name="Messages">
          <xs:complexType>
            <xs:sequence minOccurs="0" maxOccurs="1">
              <xs:element minOccurs="0" maxOccurs="unbounded" name="Message">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="ContentType" type="xs:string" />
                    <xs:element name="MessageName" type="xs:string" />
                    <xs:element name="RoutingURL" type="xs:string" />
                    <xs:element name="MessageContext">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element maxOccurs="unbounded" name="ContextProperty">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="Name" type="xs:string" />
                                <xs:element name="Value" type="xs:string" />
                                <xs:element name="Type" type="xs:string" />
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="MessageID" type="xs:string" />
                    <xs:element minOccurs="0" name="InterchangeID" type="xs:string" />
                    <xs:element name="MessageType" type="xs:string" />
                    <xs:element name="MessageData">
                      <xs:complexType mixed="true">
                        <xs:sequence>
                          <xs:any minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/1999/xhtml" processContents="lax" />
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>